class animals{
    public String name;
    public int age;

    public void eat(){
        System.out.println(name+"正在吃饭");
    }
}
//继承
class Dog extends animals{
    public void bark(){
        System.out.println(name+"在汪汪叫");
    }
}

class Cat extends animals{
    public void bark(){
        System.out.println(name+"在喵喵叫");
    }
}
public class Outerclass {
    public int data1;
    int data2;
    public static int data3;

    public void test(){
        System.out.println("Outerclass::test");
    }


    class Innerclass{
        public void func() {
            System.out.println("Innerclass::func");
        }
    }

    public static void main(String[] args) {
        Outerclass outerclass = new Outerclass();
        Outerclass.Innerclass innerclass = outerclass.new Innerclass();
    }
}
